package cn.wolfcode.crm.service;

import cn.wolfcode.crm.domain.Employee;
import cn.wolfcode.crm.query.PageResult;
import cn.wolfcode.crm.query.QueryObject;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;

import java.io.IOException;
import java.io.InputStream;
import java.util.List;

public interface IEmployeeService {
    //增加的方法
    void save(Employee dept, Long[] ids);

    //删除数据的方法
    void delete(Long id);

    void update(Employee dept, Long[] ids);

    //根据id查询部门
    Employee get(Long id);

    //查询所有的部门
    List<Employee> listAll();


    PageResult query(QueryObject qo);

    Employee login(String name,String password);

    void batchDelete(Long[] ids);

    HSSFWorkbook exportXls();

    void importXLS(InputStream inputStream) throws IOException;
}
